package io.rehuo.modules.app.service;

import com.baomidou.mybatisplus.extension.service.IService;
import io.rehuo.modules.app.entity.UserEntity;
import io.rehuo.modules.app.form.LoginForm;
import io.rehuo.modules.app.form.UserOneFormEntity;
import io.rehuo.modules.app.form.UserThreeFormEntity;
import io.rehuo.modules.app.form.UserTwoFormEntity;

/**
 * 用户
 */
public interface UserService extends IService<UserEntity> {

    UserEntity queryByMobile(String mobile);

    /**
     * 用户登录
     *
     * @param form 登录表单
     * @return 返回用户ID
     */
    UserEntity login(LoginForm form);

    /**
     * No such property: code for class: Script1
     * @return : No such property: code for class: Script1
     * @author : shiguang
     * @description : (保存用户基础信息1)
     * @date : 2022/9/10 23:40
     */
    void saveUserOne(UserOneFormEntity entity,UserEntity userEntity);

    /**
     * No such property: code for class: Script1
     * @return : No such property: code for class: Script1
     * @author : shiguang
     * @description : (保存用户基础信息2)
     * @date : 2022/9/11 22:02
     */
    void saveUserTwo(UserTwoFormEntity entity,UserEntity userEntity);

    /**
     * No such property: code for class: Script1
     * @return : No such property: code for class: Script1
     * @author : shiguang
     * @description : (保存用户照片)
     * @date : 2022/9/11 23:04
     */
    void saveUserThree(UserThreeFormEntity entity, UserEntity userEntity);

    /**
     * 修改运营商状态
     * @param userEntity
     */
    void updateUserOperator(UserEntity userEntity);
}
